<template>
  <div style="width: 600px; height: 300px; position: relative; z-index: 3; background: pink;">
    <h1>分类列表</h1>
    <ul>
      <li v-for="item in list" :key="item.id">
        {{ item.name }}
      </li>
    </ul>
  </div>
</template>

<script>
import { reqFindHeadCategory } from '@/api/home'
import { ref } from 'vue'
export default {
  async setup () {
    const res = await reqFindHeadCategory()
    const list = ref([])
    list.value = res.result
    return {
      list: list
    }
  }
}
</script>
